package com.ruoyi.capsule.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 胶囊管理对象 capsule_data
 *
 * @author wujiale
 * @date 2025-03-03
 */
public class CapsuleData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long capsuleId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 解锁时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "解锁时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date unlockTime;

    /** 是否公开 */
    @Excel(name = "是否公开")
    private Integer isPublic;

    /** 是否封存 */
    @Excel(name = "是否封存")
    private Integer isSafe;

    /** 邮件信息 */
    @Excel(name = "邮件信息")
    private String email;

    /** 图片信息 */
    @Excel(name = "图片信息")
    private String images;

    public void setCapsuleId(Long capsuleId)
    {
        this.capsuleId = capsuleId;
    }

    public Long getCapsuleId()
    {
        return capsuleId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setUnlockTime(Date unlockTime)
    {
        this.unlockTime = unlockTime;
    }

    public Date getUnlockTime()
    {
        return unlockTime;
    }
    public void setIsPublic(Integer isPublic)
    {
        this.isPublic = isPublic;
    }

    public Integer getIsPublic()
    {
        return isPublic;
    }
    public void setIsSafe(Integer isSafe)
    {
        this.isSafe = isSafe;
    }

    public Integer getIsSafe()
    {
        return isSafe;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setImages(String images)
    {
        this.images = images;
    }

    public String getImages()
    {
        return images;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("capsuleId", getCapsuleId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("unlockTime", getUnlockTime())
            .append("isPublic", getIsPublic())
            .append("isSafe", getIsSafe())
            .append("createTime", getCreateTime())
            .append("email", getEmail())
            .append("images", getImages())
            .toString();
    }
}
